From: Matthias Clasen Date: Wed, 27 Jun 2012 23:22:46 +0000 (-0400) Subject: PolkitAgent: Look for the right password prompt X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6398 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=46cf9faa11bb64eb661a4f359256ae581bff2ea7;p=gnome-shell.git PolkitAgent: Look for the right password prompt Pam seems to give us different strings, sometimes 'Password:', sometimes 'Password: '. Look for both of these when replacing them with a translated prompt. https://bugzilla.gnome.org/show_bug.cgi?id=675300 --- diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js index 203863174..152c11f6d 100644 --- a/js/ui/polkitAuthenticationAgent.js +++ b/js/ui/polkitAuthenticationAgent.js @@ -269,7 +269,7 @@ const AuthenticationDialog = new Lang.Class({ _onSessionRequest: function(session, request, echo_on) { // Cheap localization trick - if (request == 'Password:') + if (request == 'Password:' || request == 'Password: ') this._passwordLabel.set_text(_("Password:")); else this._passwordLabel.set_text(request);